package com.hsteach.dao.domain.equipment;

import com.hsteach.common.annotation.Excel;
import com.hsteach.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *  维修配置信息表 tb_equipment_repair_config_info
 */

@Data
public class EquipmentRepairConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 维修类型 */
    @Excel(name = "维修类型")
    private String repairType;

    /** 负责人id */
    @Excel(name = "负责人id")
    private String personId;

    /** 大平台人员id */
    @Excel(name = "大平台id")
    private String tPersonId;

    /** 负责人名称 */
    @Excel(name = "负责人名称")
    private String personName;

    /** 创建时间  */
    @Excel(name = "创建时间 ")
    private Date createTime;

    /** 更新时间  */
    @Excel(name = "更新时间 ")
    private Date updateTime;


    /** 状态 0待启用   1已启用 */
    @Excel(name = "状态 0待启用   1已启用")
    private Integer status;

    /** 是否有效 1有效 0无效 */
    @Excel(name = "是否有效 1有效 0无效")
    private Integer delStatus;

    /** 机构号 */
    @Excel(name = "机构号")
    private String orgCode;

    /** 电话 */
    @Excel(name = "电话")
    private String personMobile;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("repairType", getRepairType())
                .append("personId", getPersonId())
                .append("personName", getPersonName())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("status", getStatus())
                .append("orgCode", getOrgCode())
                .append("delStatus", getDelStatus())
                .toString();
    }

    public Map<String,Object> toMap(){
        Map<String, Object> map = new HashMap<>(16);
        map.put("id",getId());
        map.put("repairType", getRepairType());
        map.put("personId", getPersonId());
        map.put("personName", getPersonName());
        map.put("createTime", getCreateTime());
        map.put("updateTime", getUpdateTime());
        map.put("status", getStatus());
        map.put("orgCode", getOrgCode());
        map.put("delStatus", getDelStatus());

        return map;
    }
}
